<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php
    $connect=  mysql_connect('localhost', 'root','vertrigo');
     mysql_selectdb('tdc', $connect);
     $name=$_POST['name'];
     $search=$_POST['search'];
     $sql="SELECT * FROM `students` WHERE name LIKE '$name%' ";
     $quey=  mysql_query($sql);
     $qe_row=  mysql_num_rows($quey);
     $data=array();
     if(isset($search))
     {
        if($qe_row!=NULL)
           {
               //header('location:index.php');
               echo 'NAME'."<br/>";
               while($data=  mysql_fetch_assoc($quey))
               {
                   echo $data['name']."<br/>";
               }
               
           }
     
    }
     
